package com.cloud.demo.controller;

import com.cloud.demo.entity.User;
import com.cloud.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: xhn
 */
@RestController
public class Test2DemoContraoller {

    @Autowired
    UserService userService;

    @RequestMapping("findAll2")
    public List<User> findAll(){
        return userService.findAll();
    }
}
